package away3d.animators.data;


import away3d.core.base.Geometry;



/**
 * A sequence for a VertexAnimation type of animation. A sequence is a pre-animated clip consisting out of a number of frames.
 */
class VertexAnimationSequence extends AnimationSequenceBase
{
    
    
    public var _frames : Vector<Geometry>;
    
    
    
    /**
     * Creates a new VertexAnimationSequence object.
     * @param name The name of the animation clip. It will be used as the identifier by sequence controller classes.
     */
    public function new( name : String )
    {
        
        super( name ) ;
        _frames = new Vector() ;
        
    }
    
    
    /**
    * Adds a frame with a given duration to the sequence.
    * @param geometry The Geometry for this frame of the sequence
    * @param duration milliseconds to show this frame of the sequence
    */
    public function addFrame( geometry : Geometry, duration : Int ) : void
    {
        
        _totalDuration += duration ;
        _frames.push( geometry ) ;
        _durations.push( duration ) ;
        
    }
    
    
}